<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<head>
  <script type="text/javascript">
  function doSearch() {
	  grid.load({
          title: $('#title').val(),
          ins_cd: $('#ins_cd').val(),
          ins_cn_nm: $('#ins_cn_nm').val()
  	});
  }
  /*新增*/
  function addHelp(url){
	  commonDetail(url, "save", "helpTableId");
  }
 /* 修改*/
  function modifyHelp(url){
   commonDetail(url, "update", "helpTableId");
  }
  /*删除*/
  function deleteHelp(url){
      commonDel(url, "delete", "helpTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#helpTableId").jpgrid({
			url: "helpListJson.do",
			columns: [
				{title: "所属机构", field: "INST_NAME",width:150},
                {title: "APP名称", field: "APP_NAME_APP",width:100},
				{title: "标题", field: "TITLE",width:100},
                {title: "帮助信息类型", field: "HELP_TP",width:100}
			]
		});
  });
  </script>
</head>
<body class="easyui-layout list_body"  >
	<form id="helpForm" name="helpForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >
			<!-- 查询表单 -->
			<div  class="datagrid-toolbar" border="false"  >
				<span>标题:</span>
				<input id="title" type="text" name="title"  class="easyui-textbox"  >
				<span>机构号:</span>
				<input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
				<span>机构名称:</span>
				<input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"  >
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a> 
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>					
			</div>
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="helpTableId" fit="true"></table>
		</div>
	</form>
</body>
</html>
